#!/bin/bash

PrjList="EulerOS:V3R1:BuildToolsBep
EulerOS:V3R1:COMMOM
EulerOS:V3R1:CompileTools
EulerOS:V3R1:GENERAL
EulerOS:V3R1:GENERAL:Custom
EulerOS:V3R1:GENERAL:Kernel
EulerOS:V3R1:KIWI
EulerOS:V3R1:PANGEA
EulerOS:V3R1:PANGEA:Custom
EulerOS:V3R1:PANGEA:Kernel
EulerOS:V3R1:PANGEA:Storage
EulerOS:V3R1:STANDARD
EulerOS:V3R1:STANDARD:Docker
EulerOS:V3R1:STANDARD:LibStorage
EulerOS:V3R1:STANDARD:qat
EulerOS:V3R1:UVP"

for line in $PrjList
do
    newprj=`echo $line | sed 's/EulerOS/GCOV_EulerOS/g'`
    oldprj=$line
    echo $newprj
    echo $oldprj
    curl  http://10.186.49.73:8080/job/obs_prj_cp/buildWithParameters?token=xdf -d src_prj="$oldprj" -d des_prj="$newprj" -d co_flag='0' -d old_brinfo='none' -d new_brinfo='next_new'
    sleep 120s
done
